package com.java.basis.accessmodifer.p2;

import com.java.basis.accessmodifer.p1.Girl;

/**
 * @author wangning
 * @create 2021-04-22 14:38
 */
public class Test01 {
	public static void main(String[] args) {
		Girl girl = new Girl();
		//girl.f();//error
		Boy boy = new Boy();
		//boy.f();//error,如果Boy类重写了父类Person中的protected方法，这里就可以调用成功

	}
}
